package org.dey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.dey.pojo.CheckItem;
import org.dey.pojo.PageInfo;
import org.dey.pojo.PageVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hg
 * @date 2022/3/15
 * @classname
 */
@Repository
public interface CheckItemMapper extends BaseMapper<CheckItem> {

    //获取最后一条数据的检查项编号
    @Select(" SELECT code FROM t_checkitem ORDER BY id DESC LIMIT 0,1")
    public CheckItem getCheckItem();


    @Delete("Delete from t_checkgroup_checkitem where checkgroup_id=#{id}")
    int xc(int id);
}
